using Microsoft.VisualBasic;
using System;
using System.Collections;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
namespace ePlanSysOman
{
  public partial class frmStepParts
  {
    private void  // ERROR: Handles clauses are not supported in C#
btnAddParts_Click(System.Object sender, System.EventArgs e)
    {
        if (Module1.newModule.stpParts)
        {
            Module1.newModule.ops = true;
            Module1.newModule.PartsStep = Module1.newModule.GetSelectedValues(this.GridView1);
            Module1.newModule.ops = false;
        this.Dispose();
      } else {
          Module1.newModule.ops = false;
          Module1.newModule.electrical = true;
          Module1.newModule.PartsStep = Module1.newModule.GetSelectedValues(this.GridView2);
        Module1.newModule.electrical = false;
        this.Dispose();
      }
    }

    private void  // ERROR: Handles clauses are not supported in C#
btnExit_Click(System.Object sender, System.EventArgs e)
    {
        Module1.newModule.PartsStep = Module1.newModule.rowt;
      this.Dispose();
    }



    private void  // ERROR: Handles clauses are not supported in C#
XtraTabPage1_Enter(object sender, System.EventArgs e)
    {
        Module1.newModule.stpParts = true;
    }

    private void  // ERROR: Handles clauses are not supported in C#
XtraTabPage2_Enter(object sender, System.EventArgs e)
    {
        Module1.newModule.stpParts = false;
    }

    private void gridStepParts_Click(object sender, EventArgs e)
    {

    }

    public frmStepParts()
    {
        InitializeComponent(); 
    }
  }
}

